<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Java API Reference for Android: com.juphoon.cloud.JCNet Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Java API Reference for Android
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>com</b></li><li class="navelem"><b>juphoon</b></li><li class="navelem"><b>cloud</b></li><li class="navelem"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html">JCNet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">com.juphoon.cloud.JCNet Class Reference<div class="ingroups"><a class="el" href="group___xE7_xBD_x91_xE7_xBB_x9C_xE6_xA8_xA1_xE5_x9D_x97.html">网络模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3a0f2b0ccafdb897629c79e6a7f83305"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#a3a0f2b0ccafdb897629c79e6a7f83305">getNetType</a> ()</td></tr>
<tr class="separator:a3a0f2b0ccafdb897629c79e6a7f83305"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a2116994f25cf61afbca890b2a09f8c"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#a7a2116994f25cf61afbca890b2a09f8c">hasNet</a> ()</td></tr>
<tr class="separator:a7a2116994f25cf61afbca890b2a09f8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57bbc7654359dba96c292ff714328286"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#a57bbc7654359dba96c292ff714328286">addCallback</a> (<a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_net_callback.html">JCNetCallback</a> callback)</td></tr>
<tr class="separator:a57bbc7654359dba96c292ff714328286"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33569d379c9d0fd5299ba07a833f437a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#a33569d379c9d0fd5299ba07a833f437a">removeCallback</a> (<a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_net_callback.html">JCNetCallback</a> callback)</td></tr>
<tr class="separator:a33569d379c9d0fd5299ba07a833f437a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:af351ec89427257deba29aa05dc5a0d08"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html">JCNet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#af351ec89427257deba29aa05dc5a0d08">getInstance</a> ()</td></tr>
<tr class="separator:af351ec89427257deba29aa05dc5a0d08"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a67692f1449fba454d3176c7bb98d5814"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#a67692f1449fba454d3176c7bb98d5814">UNAVAILABLE</a> = 0</td></tr>
<tr class="separator:a67692f1449fba454d3176c7bb98d5814"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaad5375aaf2be4dd0c299e92ec443222"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#aaad5375aaf2be4dd0c299e92ec443222">WIFI</a> = 1</td></tr>
<tr class="separator:aaad5375aaf2be4dd0c299e92ec443222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58892291ca7f83c2e6bf76bf6e510b96"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#a58892291ca7f83c2e6bf76bf6e510b96">MOBILE</a> = 2</td></tr>
<tr class="separator:a58892291ca7f83c2e6bf76bf6e510b96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54cd28a11ae6897d9005927f36e74fcd"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#a54cd28a11ae6897d9005927f36e74fcd">ETHERNET</a> = 3</td></tr>
<tr class="separator:a54cd28a11ae6897d9005927f36e74fcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa12836776cb6f96e488e5a74339607de"><td class="memItemLeft" align="right" valign="top">static final int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#aa12836776cb6f96e488e5a74339607de">UNKNOWN</a> = 4</td></tr>
<tr class="separator:aa12836776cb6f96e488e5a74339607de"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>用于获取当前网络信息 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="af351ec89427257deba29aa05dc5a0d08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af351ec89427257deba29aa05dc5a0d08">&#9670;&nbsp;</a></span>getInstance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html">JCNet</a> com.juphoon.cloud.JCNet.getInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获得 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html">JCNet</a> 对象 </p><dl class="section return"><dt>Returns</dt><dd><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html">JCNet</a> 对象 </dd></dl>

</div>
</div>
<a id="a3a0f2b0ccafdb897629c79e6a7f83305"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a0f2b0ccafdb897629c79e6a7f83305">&#9670;&nbsp;</a></span>getNetType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int com.juphoon.cloud.JCNet.getNetType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>网络类型</p>
<dl class="section return"><dt>Returns</dt><dd>网络类型，参见：<ul>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#a67692f1449fba454d3176c7bb98d5814">UNAVAILABLE</a> : 无网</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#aaad5375aaf2be4dd0c299e92ec443222">WIFI</a> : Wifi</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#a58892291ca7f83c2e6bf76bf6e510b96">MOBILE</a> : 数据网</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#a54cd28a11ae6897d9005927f36e74fcd">ETHERNET</a> : 网线</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#aa12836776cb6f96e488e5a74339607de">UNKNOWN</a> : 未知类型 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a7a2116994f25cf61afbca890b2a09f8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a2116994f25cf61afbca890b2a09f8c">&#9670;&nbsp;</a></span>hasNet()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.juphoon.cloud.JCNet.hasNet </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否有网</p>
<dl class="section note"><dt>Note</dt><dd><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_net.html#aa12836776cb6f96e488e5a74339607de">UNKNOWN</a> 认为无网</dd></dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>true 表示有网</li>
<li>false 表示无网 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a57bbc7654359dba96c292ff714328286"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57bbc7654359dba96c292ff714328286">&#9670;&nbsp;</a></span>addCallback()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCNet.addCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_net_callback.html">JCNetCallback</a>&#160;</td>
          <td class="paramname"><em>callback</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置回调</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">callback</td><td>回调对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a33569d379c9d0fd5299ba07a833f437a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33569d379c9d0fd5299ba07a833f437a">&#9670;&nbsp;</a></span>removeCallback()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCNet.removeCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_net_callback.html">JCNetCallback</a>&#160;</td>
          <td class="paramname"><em>callback</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>删除回调</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">callback</td><td>回调对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a67692f1449fba454d3176c7bb98d5814"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67692f1449fba454d3176c7bb98d5814">&#9670;&nbsp;</a></span>UNAVAILABLE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCNet.UNAVAILABLE = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>无网 </p>

</div>
</div>
<a id="aaad5375aaf2be4dd0c299e92ec443222"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaad5375aaf2be4dd0c299e92ec443222">&#9670;&nbsp;</a></span>WIFI</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCNet.WIFI = 1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Wifi </p>

</div>
</div>
<a id="a58892291ca7f83c2e6bf76bf6e510b96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58892291ca7f83c2e6bf76bf6e510b96">&#9670;&nbsp;</a></span>MOBILE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCNet.MOBILE = 2</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>数据网 </p>

</div>
</div>
<a id="a54cd28a11ae6897d9005927f36e74fcd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54cd28a11ae6897d9005927f36e74fcd">&#9670;&nbsp;</a></span>ETHERNET</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCNet.ETHERNET = 3</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>网线 </p>

</div>
</div>
<a id="aa12836776cb6f96e488e5a74339607de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa12836776cb6f96e488e5a74339607de">&#9670;&nbsp;</a></span>UNKNOWN</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">final int com.juphoon.cloud.JCNet.UNKNOWN = 4</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>未知类型 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cloud/src/main/common/com/juphoon/cloud/JCNet.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
